package com.itheima.dao;

import com.itheima.pojo.Member;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author LiangTianQi
 * @describe
 * @date 2020/11/17 20:13
 */
public interface MemberDao {
    Integer add(Member member);

    Member getByTelephone(String telephone);


    Integer getCountByMonth(String date);

    Integer getCount();

    Integer getCountByDate(String date);

    Integer getCountByMonthOrWeek(String date);

    List<Member> getByConditions(@Param("queryString") String queryString);

    Member get(Integer id);

    void update(Member member);

    void delete(Integer id);
}
